import {
  getJSONFromLocalStorage,
  setJSONToLocalStorage,
  removeFromLocalStorage
} from './storageUtil'

// 获取用户信息
const user = getJSONFromLocalStorage('userAccount')
console.log('当前用户:', user)

// 获取 token（如果是字符串）
const token = localStorage.getItem('token')
console.log('当前 token:', token)

// 设置用户信息
setJSONToLocalStorage('userAccount', {
  userId: '123456',
  userName: 'KLB'
})

// 删除
removeFromLocalStorage('userAccount')
